package com.zhanggm.ry.rys2.feign;

import com.ruoyi.common.core.domain.R;
import com.zhanggm.ry.rys2.entity.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ry-s1",path = "/s1/dept")
public interface S1FeignApi {

    @GetMapping("getById")
    public R<Dept> getById(@RequestParam("id") Long id);
}
